<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
            background: url('./images/lili.jpg') ;
        }
        .left a {
            display: block;
            font-size: 12px;
            width: 48px;
            height: 27px;
            text-align: center;
            line-height: 28px;
            border-bottom: 1px solid #ccc;
            border-right: 1px solid #ccc;
            border-left: 1px solid #ccc;
        }
        .right a {
            display: block;
            font-size: 12px;
            width: 48px;
            height: 27px;
            text-align: center;
            line-height: 28px;
            border-bottom: 1px solid #ccc;
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
        }
        .box {
            width: 300px;
            height: 252px;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
            margin: 100px auto;
        }
        .left {
            width: 50px;
            height: 250px;
            float: left;
        }
        .center {
            width: 200px;
            height: 250px;
            float:left;
            position: relative;
        }
        .center li a {
            display: block;
            width: 100%;
            height: 100%

        }
        .center li {
            position: absolute;
            width: 200px;
            height: 250px;
            top: 0;
            left: 0;
            display:none;

        }
        .right {
            width: 50px;
            height: 250px;
            float: right;
        }

    </style>
    <script src="jquery-1.12.4.js"></script>
    <script>
        $(function(){
            //移入左边li标签
            $('.left li').mouseover(function(){
                $(this).css('background','red')
                var index = $(this).index()
                $('.center li:eq('+index+')').show().siblings().hide()
            })
            $('.right li').mouseover(function(){
                $(this).css('background','red');
                var index = $(this).index()+ 9;
                $('.center li:eq('+index+')').show().siblings().hide()
            })
            //移出左边li标签
            $('.left li').mouseout(function(){
                $(this).css('background','')
            })
            $('.right li').mouseout(function(){
                $(this).css('background','')
            })
        })
    </script>
</head>
<body>
    <div class="box">
        <div class="left">
            <ul>
                <li><a href="javascript:void(0)">女靴</a></li>
                <li><a href="javascript:void(0)">雪地靴</a></li>
                <li><a href="javascript:void(0)">冬裙</a></li>
                <li><a href="javascript:void(0)">呢大衣</a></li>
                <li><a href="javascript:void(0)">毛衣</a></li>
                <li><a href="javascript:void(0)">棉服</a></li>
                <li><a href="javascript:void(0)">女裤</a></li>
                <li><a href="javascript:void(0)">羽绒服</a></li>
                <li><a href="javascript:void(0)">牛仔裤</a></li>
            </ul>
        </div>
        <div class="center">
            <ul>
                <li style='display:block;'><a href="javascript:void(0)"><img src="./images/女靴.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/雪地靴.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/冬裙.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/呢大衣.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/毛衣.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/棉服.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/女裤.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/羽绒服.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/牛仔裤.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/女包.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/男靴.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/登山鞋.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/皮带.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/围巾.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/皮衣.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/男毛衣.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/男棉服.jpg" alt=""></a></li>
                <li><a href="javascript:void(0)"><img src="./images/男包.jpg" alt=""></a></li>
            </ul>
        </div>
        <div class="right">
            <ul>
                <li><a href="javascript:void(0)">女包</a></li>
                <li><a href="javascript:void(0)">男靴</a></li>
                <li><a href="javascript:void(0)">登山鞋</a></li>
                <li><a href="javascript:void(0)">皮带</a></li>
                <li><a href="javascript:void(0)">围巾</a></li>
                <li><a href="javascript:void(0)">皮衣</a></li>
                <li><a href="javascript:void(0)">男毛衣</a></li>
                <li><a href="javascript:void(0)">男棉服</a></li>
                <li><a href="javascript:void(0)">男包</a></li>
            </ul>
        </div>
    </div>
</body>
</html>